<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>7.extend简写形式</title>
        <!-- 引入Vue -->
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <!-- 准备好一个容器-->
        <div id="app">
            
        </div>
    </body>

    <script>

        // const  App = Vue.extend({
        //     template:`<h1>这是app根组件</h1>`
        // })

        const  App = {
            template:`<h1>这是app根组件</h1>`
        }




        new Vue({
            el:"#app",
            template:`<App/>`,
            components:{
                App
            }
        })
    </script>
</html>